#include"client.hpp"
#include<memory>

static void Usge(string argv)
{
  cout << "\nUsage:\n\t" << argv << " serverip serverport\n\n";
}

int main(int args,char *argv[])
{  
    if(args<3)
    {
      Usge(argv[0]);
    }
   uint16_t port=atoi(argv[2]);
   string ip=argv[1];
   unique_ptr<Tcpclient> clie(new Tcpclient(port,ip));
   clie->initclient();
   clie->run();


}